package com.nebula.upms.boot;

import com.nebula.common.listener.ApplicationStartUpListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created by Mtime on 2017/9/5.
 */
@SpringBootApplication(scanBasePackages="com.nebula.**",exclude = MongoAutoConfiguration.class)
//@ComponentScan(basePackages={"com.nebula.**.spring"})
public class UpmsBoot {

    public  static  void  main(String argus[]){
        SpringApplication application = new SpringApplication(UpmsBoot.class);
        application.addListeners(new ApplicationStartUpListener());
        application.run(argus);
    }
}
